import request from '@/utils/request'
import { bb } from '@/utils/request';

import da from 'element-ui/src/locale/lang/da'
//const bb = 'http://127.0.0.1:8080';
//const bb = 'http://182.92.190.174:8081';
export function login(aa) {
  return request({
    baseURL:bb ,
    url: '/user/login',
    method: 'post',
    data:aa
  })
}

export function updateUser(userUpdateVo){
  return request({
    baseURL:bb ,
    url: '/user/updateUser',
    method: 'post',
    data:userUpdateVo
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-admin-template/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
